 
import junit.framework.TestCase;
import count.Count;
 
public class TestCount extends TestCase {
 
    public void testpath1(){
 
        Count o1 = new Count();
        assertEquals( 0 , o1.getNumber());
        o1.increase();
        assertEquals( 1 , o1.getNumber());
        o1.decrease();
        assertEquals( 0 , o1.getNumber());
        }
    public void testpath2(){
 
        Count o1 = new Count();
        assertEquals( 0 , o1.getNumber());
        o1.increase();
        assertEquals( 1 , o1.getNumber());
        o1.decrease();
        assertEquals( 0 , o1.getNumber());
        o1.increase();
        assertEquals( 1 , o1.getNumber());
        o1.decrease();
        assertEquals( 0 , o1.getNumber());
        }
    public void testpath3(){
 
        Count o1 = new Count();
        assertEquals( 0 , o1.getNumber());
        o1.increase();
        assertEquals( 1 , o1.getNumber());
        o1.increase();
        assertEquals( 2 , o1.getNumber());
        o1.decrease();
        assertEquals( 1 , o1.getNumber());
        o1.decrease();
        assertEquals( 0 , o1.getNumber());
        }
    public void testpath4(){
 
        Count o1 = new Count();
        assertEquals( 0 , o1.getNumber());
        o1.increase();
        assertEquals( 1 , o1.getNumber());
        o1.increase();
        assertEquals( 2 , o1.getNumber());
        o1.decrease();
        assertEquals( 1 , o1.getNumber());
        o1.increase();
        assertEquals( 2 , o1.getNumber());
        o1.decrease();
        assertEquals( 1 , o1.getNumber());
        o1.decrease();
        assertEquals( 0 , o1.getNumber());
        }
    public void testpath5(){
 
        Count o1 = new Count();
        assertEquals( 0 , o1.getNumber());
        o1.increase();
        assertEquals( 1 , o1.getNumber());
        o1.increase();
        assertEquals( 2 , o1.getNumber());
        o1.increase();
        assertEquals( 3 , o1.getNumber());
        o1.decrease();
        assertEquals( 2 , o1.getNumber());
        o1.decrease();
        assertEquals( 1 , o1.getNumber());
        o1.decrease();
        assertEquals( 0 , o1.getNumber());
        }
}
